package com.leesche.zcsp.node.web.service.impl;

import com.leesche.zcsp.node.web.dao.SysUserTokenDao;
import com.leesche.zcsp.node.web.model.SysUserToken;
import com.leesche.zcsp.node.web.model.SysUserTokenCriteria;
import com.leesche.zcsp.node.web.service.SysUserTokenService;
import com.leesche.zcsp.node.web.service.impl.data.read.QuerySysUserTokenCondition;
import com.leesche.zcsp.node.web.service.impl.data.read.SysUserTokenDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2016-11-10.
 */
@Service
@Transactional
public class SysUserTokenServiceImpl extends BaseServiceImpl<SysUserToken, SysUserTokenCriteria, SysUserTokenDto, QuerySysUserTokenCondition, Long>
        implements SysUserTokenService {

    @Autowired
    private SysUserTokenDao sysUserTokenDao;

    @Autowired
    public void setBaseDao(SysUserTokenDao sysUserTokenDao) {
        super.setBaseDao(sysUserTokenDao);
    }

    @Override
    public SysUserToken findUserTokenByCondition(QuerySysUserTokenCondition conditiono) {
        return sysUserTokenDao.selectUserTokenByCondition(conditiono);
    }

    @Override
    public SysUserTokenDto findUserInfoDtoByCondition(QuerySysUserTokenCondition conditiono) {
        return sysUserTokenDao.selectUserInfoDtoByCondition(conditiono);
    }

    @Override
    public List<SysUserToken> findUserInfoListDtoByCondition(QuerySysUserTokenCondition condition) {
        return sysUserTokenDao.selectUserInfoListDtoByCondition(condition);
    }
}
